#include<iostream>
#include<vector>
using namespace std;
int main()
{
	int n;
	cin >> n;
	vector<int> ret;
	ret.resize(n);
	int cnt = 0;
	for (int i = 0; i < n; i++)
	{
		cin >> ret[i];
	}
	for (int j = 0; j < ret.size() ; j++)
	{
		int k;
		for (k = j + 1 ; k < ret.size(); k++)
		{
			if (ret[j] <= ret[k])
			{
				break;
			}
		}
		if (k == ret.size())
		{
			cnt++;
		}
	}
	cout << cnt << endl;
	return 0;
}